. ./const.sh

target_dir=$attack_adv_dir
skeleton_dir=$attack_skl_dir
progress_dir=$attack_prg_dir
iters=100
num=6

# python main.py --sourcedir ${clean_dir} --gtdir ${gt_dir} --targetdir ${target_dir} --skeletondir ${skeleton_dir} --progressdir ${progress_dir} --eps ${eps} --iters ${iters} --dataset ${dataset} --modelname ${skeleton_method} --gpu ${cuda} --attacker ${attack_method} --num ${num}


for skeleton_method in 'hifi'
do
  for dataset in 'symmax300' 'whsymmax' 'sklarge' 'sympascal' 
  do
    clean_dir=${clean_dict[${dataset}]}
    gt_dir=${gt_dict[${dataset}]}
    # skeleton_dir=${base}'/'${flag}'/skeleton/origin/gridsearch/'${skeleton_method}'/'${dataset}'/'

    # python main.py --sourcedir ${clean_dir} --gtdir ${gt_dir} --targetdir ${target_dir} --skeletondir ${skeleton_dir} --progressdir ${progress_dir} --eps 0 --iters ${iters} --dataset ${dataset} --modelname ${skeleton_method} --gpu ${cuda} --attacker origin --num ${num}

    for attack_method in 'wsa'
    do
      for eps in 16 8 4
      do
        target_dir=${base}'/'${flag}'/adv/'${attack_method}'/gridsearch/'${skeleton_method}'/'${dataset}'/eps_'${eps}'/'
        skeleton_dir=${base}'/'${flag}'/skeleton/'${attack_method}'/gridsearch/'${skeleton_method}'/'${dataset}'/eps_'${eps}'/'
        progress_dir=${base}'/'${flag}'/progress/'${attack_method}'/'${skeleton_method}'/'${dataset}'/eps_'${eps}'/'

        python main.py --sourcedir ${clean_dir} --gtdir ${gt_dir} --targetdir ${target_dir} --skeletondir ${skeleton_dir} --progressdir ${progress_dir} --eps ${eps} --iters ${iters} --dataset ${dataset} --modelname ${skeleton_method} --gpu ${cuda} --attacker ${attack_method} --num ${num}
      done
    done
  done
done